#include "volUnit.h"

VolUnit::VolUnit(Amount a) :
		baseUnit(a) {
}

#define DECL_GET_METHOD(name) \
		VolUnit& VolUnit::get##name() {\
			static VolUnit instance(name);\
			return instance;\
		}

DECL_GET_METHOD(TSP)
DECL_GET_METHOD(TBSP)
DECL_GET_METHOD(OZ)
DECL_GET_METHOD(BASE)

Amount VolUnit::BaseUnit() const {
	return baseUnit;
}
